package com.pitb.citizenreporting;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MainUI extends Activity implements OnClickListener{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mainui);
		ImageButton reportProblem = (ImageButton)findViewById(R.id.report_problem);
		ImageButton myComplaints = (ImageButton)findViewById(R.id.my_complaints);
		ImageButton trackIssue = (ImageButton)findViewById(R.id.track_issue);
		reportProblem.setOnClickListener(this);
		myComplaints.setOnClickListener(this);
		trackIssue.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		if(v.getId() == R.id.report_problem){
			startActivity(new Intent(this,ReportProblem.class));
		}else if(v.getId() == R.id.my_complaints){
			startActivity(new Intent(this,MyComplaints.class));
		}else if(v.getId() == R.id.track_issue){
			startActivity(new Intent(this,TrackIssue.class));
		}
	}
}
